<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = [1, 2, 3, 4, 5]
        let _arr = arr.map((v, i) => {
            console.log(v);
            return v + 1
        })
        console.log(_arr);
        /////////////////////////////////////////////
        let _arr1 = arr.map(parseInt)
        // 等价于
        // let _arr1 = arr.map((v,i,arr) => {
        //     return parseInt(v,i,arr)
        // })
        console.log(_arr1);
        /////////////////////////////////////////////

        let _arr2 = arr.map(console.log)


    </script>
</body>

</html>